package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_shipper_account;

import cn.com.api.mapper.ApiT_shipper_accountMapper;

import cn.com.api.service.ApiT_shipper_accountService;

/**
 * 
 **/
@Service
public class T_shipper_accountServiceImplBase {
	@Autowired
	private ApiT_shipper_accountMapper apiT_shipper_accountMapper;

	// 根据id获取
	public ApiT_shipper_account findT_shipper_accountById(Integer id) {
		ApiT_shipper_account t_shipper_account = apiT_shipper_accountMapper
				.findT_shipper_accountById(id);
		return t_shipper_account;
	}

	// 查看数据集
	public List<ApiT_shipper_account> findT_shipper_accounts() {
		List<ApiT_shipper_account> t_shipper_accounts = apiT_shipper_accountMapper
				.findT_shipper_accounts();
		return t_shipper_accounts;
	}

	// 添加
	public int insertT_shipper_account(ApiT_shipper_account t_shipper_account) {
		int ret_I = apiT_shipper_accountMapper
				.insertT_shipper_account(t_shipper_account);
		return ret_I;
	}

	// 修改
	public int updateT_shipper_account(ApiT_shipper_account t_shipper_account) {
		int ret_I = apiT_shipper_accountMapper
				.updateT_shipper_account(t_shipper_account);
		return ret_I;
	}

	// 删除
	public int deleteT_shipper_account(Integer id) {
		int ret_I = apiT_shipper_accountMapper.deleteT_shipper_account(id);
		return ret_I;
	}

	// Foreign keys revelant

	// region Indexs revelant

	// 获取根据user_id
	public List<ApiT_shipper_account> findT_shipper_accountsByUser_id(
			String user_id) {
		List<ApiT_shipper_account> t_shipper_accounts = apiT_shipper_accountMapper
				.findT_shipper_accountsByUser_id(user_id);
		return t_shipper_accounts;
	}

	// 获取根据working_status
	public List<ApiT_shipper_account> findT_shipper_accountsByWorking_status(
			String working_status) {
		List<ApiT_shipper_account> t_shipper_accounts = apiT_shipper_accountMapper
				.findT_shipper_accountsByWorking_status(working_status);
		return t_shipper_accounts;
	}

}
